package com.kgc.scd.conntant;/**
 * <p>
 *
 * </p>
 *
 * @author shelina
 * @since 2022/11/4
 */

/**
 * Created On : 2022/11/4.
 * <p>
 * Author : #jiangguoqiang
 * <p>
 * Description: WechatPayConstant
 */
public class WechatPayConstant {
    //系统交易订单号的前缀标识符
    public static final String WECHAT_PAY_TRADE_ORDER_NO_PREFIX = "KH";

    //系统格式化字符串日期字符串，到秒
    public static final String WECHAT_PAY_TIME_PATTERN_ALL = "yyyyMMddHHmmss";

    //系统格式化日期字符串，到天
    public static final String WECHAT_PAY_TIME_PATTERN_DAY = "yyyyMMdd";

    //微信支付下单的交易类型
    public static final String WECHAT_PAY_TRADE_TYPE_NATIVE = "NATIVE";

    //微信支付的签名方式
    public static final String WECHAT_PAY_SIGN_TYPE_MD5 = "MD5";

    //微信支付的签名参数名
    public static final String WECHAT_PAY_FIELD_SIGN = "sign";

    //微信支付请求的字符集编码
    public static final String WECHAT_PAY_ENCODING_UTF8 = "UTF-8";

    //微信支付下单结果成功的状态码
    public static final String WECHAT_PAY_RESULT_SUCCESS = "SUCCESS";

    //微信支付结果异步回调的同步响应
    public static final String WECHAT_PAY_NOTIFY_RESP_SUCCESS = "<xml>\n" +
            "  <return_code><![CDATA[SUCCESS]]></return_code>\n" +
            "  <return_msg><![CDATA[OK]]></return_msg>\n" +
            "</xml>";

    public static final String WECHAT_PAY_NOTIFY_RESP_FAIL = "<xml>\n" +
            "  <return_code><![CDATA[SUCCESS]]></return_code>\n" +
            "  <return_msg><![CDATA[NO OK]]></return_msg>\n" +
            "</xml>";
    //redis会员key键统一前缀
    public static final String REDIS_MEMBER_UNIFIED_PREFIX = "VIP:";

}
